package com.homestay.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Books {
    private int id;
    private int vip_id;
    private int home_id;
    private LocalDateTime enterTime;
    private LocalDateTime exitTime;
    private LocalDateTime createTime;

    public Books(int vip_id, int home_id, LocalDateTime enterTime) {
    	this.vip_id = vip_id;
    	this.home_id = home_id;
    	this.enterTime = enterTime;
    }

    public Books(int id,int vip_id, int home_id, LocalDateTime enterTime) {
        this.id = id;
        this.vip_id = vip_id;
        this.home_id = home_id;
        this.enterTime = enterTime;
    }

    public Books(int id,int vip_id, int home_id, LocalDateTime enterTime, LocalDateTime exitTime) {
        this.id = id;
    	this.vip_id = vip_id;
    	this.home_id = home_id;
    	this.enterTime = enterTime;
    	this.exitTime = exitTime;
    }
}
